package com.ruoyi.riskAssessment.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.riskAssessment.mapper.RkWarningMapper;
import com.ruoyi.riskAssessment.domain.RkWarning;
import com.ruoyi.riskAssessment.service.IRkWarningService;

/**
 * 风险评估-预警Service业务层处理
 * 
 * @author lth
 * @date 2023-12-15
 */
@Service
public class RkWarningServiceImpl implements IRkWarningService 
{
    @Autowired
    private RkWarningMapper rkWarningMapper;

    /**
     * 查询风险评估-预警
     * 
     * @param id 风险评估-预警主键
     * @return 风险评估-预警
     */
    @Override
    public RkWarning selectRkWarningById(Long id)
    {
        return rkWarningMapper.selectRkWarningById(id);
    }

    /**
     * 查询风险评估-预警列表
     * 
     * @param rkWarning 风险评估-预警
     * @return 风险评估-预警
     */
    @Override
    public List<RkWarning> selectRkWarningList(RkWarning rkWarning)
    {
        return rkWarningMapper.selectRkWarningList(rkWarning);
    }

    /**
     * 新增风险评估-预警
     * 
     * @param rkWarning 风险评估-预警
     * @return 结果
     */
    @Override
    public int insertRkWarning(RkWarning rkWarning)
    {
        return rkWarningMapper.insertRkWarning(rkWarning);
    }

    /**
     * 修改风险评估-预警
     * 
     * @param rkWarning 风险评估-预警
     * @return 结果
     */
    @Override
    public int updateRkWarning(RkWarning rkWarning)
    {
        return rkWarningMapper.updateRkWarning(rkWarning);
    }

    /**
     * 批量删除风险评估-预警
     * 
     * @param ids 需要删除的风险评估-预警主键
     * @return 结果
     */
    @Override
    public int deleteRkWarningByIds(Long[] ids)
    {
        return rkWarningMapper.deleteRkWarningByIds(ids);
    }

    /**
     * 删除风险评估-预警信息
     * 
     * @param id 风险评估-预警主键
     * @return 结果
     */
    @Override
    public int deleteRkWarningById(Long id)
    {
        return rkWarningMapper.deleteRkWarningById(id);
    }
}
